package jpg5.jpg5zad1;

/**
 * Autor: Daniel Michalski
 * Data: 05.07.13
 */

public class jpg3zad1 {
    public static void main(String[] args) {
        Parent parent = new Parent();

        try {
            parent.m(true);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

class Parent{
    public void m(boolean czyRzucicWyjatek) throws Exception {
        if (czyRzucicWyjatek)
            throw new Exception();
    }
}
